package com.erp.ae.service.impl;

import com.erp.ae.domain.enums.AliExpressInterfaceEnum;
import com.erp.ae.service.IAeCategoryService;
import com.erp.ae.service.IAeMediacenterService;
import com.erp.ae.utils.AeApiUtils;
import com.global.iop.api.IopClient;
import com.global.iop.api.IopClientImpl;
import com.global.iop.api.IopRequest;
import com.global.iop.api.IopResponse;
import com.global.iop.domain.Protocol;
import com.global.iop.util.ApiException;
import com.ruoyi.common.core.domain.R;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 商户订单Service业务层处理
 *
 * @author erp
 * @date 2023-03-09
 */
@RequiredArgsConstructor
@Service
public class IAeCategoryServiceImpl implements IAeCategoryService {

    @Override
    public String getById(String categoryId) {
        Long storeId = 1737003621709344770l;
        String response = AeApiUtils.getchildattributesresultbypostcateidandpath(categoryId, storeId);
        return response;
    }

    @Override
    public String getBrandById(String categoryId, Long storeId) {
        String response = AeApiUtils.getchildattributesresultbypostcateidandpath(categoryId, storeId);
        return response;
    }
}
